<h2>Categorias</h2>
    <?php foreach( CategoriaPeer::getCategorias() as $articulo ):?>
      <div class="articulo">
      <?php if($articulo->getImage() != null):?>
      <a href=<?php echo url_for("main/articulos?cat=".$articulo->getId()); ?>><img src=<?php echo "main/getPicCat?id=".$articulo->getId(); ?>></a>
      <?php else:?>
      <?php echo link_to(image_tag('fotos/none.png'),'main/show?id='.$articulo->getId())?>
    <?php endif;?>
      <br/>
        <span class="precio"><?php echo $articulo->getName() ?></span><br/>
      </div>
    <?php endforeach; ?>
  <div class="clear"></div> 

  <h2>Más Vendidos</h2>
  
    <?php foreach( ArticuloPeer::getArtByVendidos() as $articulo ):?>
      <div class="articulo">
        <?php if($articulo['IMAGE'] != null):?>
        <a href=<?php echo url_for("main/show?id=".$articulo['ID']); ?>><img src=<?php echo "main/test?id=".$articulo['ID']; ?>></a>
        <?php else:?>
      <?php echo link_to(image_tag('fotos/none.png'),'main/show?id='.$articulo['ID'])?>
    <?php endif;?>
        <br/>
        <span class="descripcion"><?php echo $articulo['NAME'] ?></span><br/>
        <span class="precio"><?php echo $articulo['PRICESELL']?></span>
      </div>
    <?php endforeach; ?>

  <div class="clear"></div> 
<?php  slot('error');
if(!empty($form))
  echo $form['email']->renderError();
  //echo "HOLA";
  
 end_slot() ?>